export const CarSaleStatus = {
    CarSaleStatusPreSale: 1, //预售
    CarSaleStatuseOnSale: 2,   // 在厅（在售）
    CarSaleStatusReserved: 3,  // 已预定
    CarSaleStatusSaled: 4,     // 出库（已售）
    CarSaleStatusRemoved: 5,   // 下架
    CarSaleStatusCancelStock: 6,//已退库
    CarSaleStatusPreparation: 8,
};

//车辆上的检测状态
export const carDetectionStatus = {
    carDetectionStatusNotDetected: 1, // 未检测
    carDetectionStatusWaitForDetection: 2,   // 待检测
    carDetectionStatusDetected: 3,  // 已检测
};

//检测单上的检测状态
export const detectionStatus = {
    detectionStatusWaitForDetection: 1, //待检测
    detectionStatusDetecting: 2,   // 检测中
    detectionStatusDetected: 3,  // 已检测
    detectionStatusDetectionCanceled: 4,  // 检测取消
};

//订单状态
export const OrderStatus = {
    OrderStatusWaitSign: 0, //待签署
    OrderStatusSigning: 5,//签署中
    OrderStatusRejectSign: 6,//已拒签
    OrderStatusWaitDelivery: 20, //待发货
    OrderStatusWaitPay: 10,  //待付款
    OrderStatusWaitReceipt: 30,  //待收货
    OrderStatusWaitSettlement: 40,  //待结算
    OrderStatusServicing: 50,  //售后中
    OrderStatusFinisded: 60,  //已完成
    OrderStatusCanceled: 70,  //已取消
    OrderStatusClosed: 80,  //已关闭
};

export const payType = {
    payTypeRatio: 0,  // 按比例
    payTypeFull: 1, // 全款
};

/**
 * 售后状态(0:待确认, 10:待签署 11签署中 12拒签/过期, 20:待发货, 30:待结算, 40:待收货, 50:已完成, 60:已关闭)
 */
export const AfterSaleStatus = {
    OrderStatusWaitConfirm: 0, 
    OrderStatusWaitSign:10,
    OrderStatusSigning: 11,
    OrderStatusRejectSign: 12,
    OrderStatusWaitDelivery: 20, 
    OrderStatusWaitSettlement: 30, 
    OrderStatusWaitReceipt: 40, 
    OrderStatusFinisded: 50,  
    OrderStatusClosed: 60, 
    OrderStatusCancel: 70,
};


//物流状态
export const LogisticsStatus = {
    LogisticsStatusWait: 10, // 受理中
    LogisticsStatusInTransit: 20,  // 运输中
    LogisticsStatusDeliverCar: 30,  // 已完成
    LogisticsStatusCancelr: 50,  // 已取消
};


export const PermissionType = {
    Permission_EnableAddCar: 1, //添加车辆
    Permission_EnableEditCar: 1<<1, //编辑车辆
    Permission_EnableReserveCar: 1<<2, //预定车辆
    Permission_EnableSaleCar: 1<<3, //出库车辆
    Permission_EnableDelCar: 1<<4, //删除车辆
    Permission_EnableSeePurchasePrice: 1<<5, //查看收购价格
    Permission_EnableSeeTradePrice: 1<<6, //查看成交价格
    Permission_EnableManageEmployee: 1<<7, //员工管理
    Permission_EnableManageDuty: 1<<8, //职务管理
    Permission_EnableManageAlliance: 1<<9, //联盟管理
    Permission_EnableEditCompanyInfo: 1<<10, //企业信息设置
    Permission_EnableGetAllCustomer: 1<<11, //查看全部客户
    Permission_EnableEditCustomer: 1<<12, //编辑全部客户
    Permission_EnableSeeUnionFloorPrice: 1<<13, //查看联盟价
    Permission_EnableSetSpecialPrice: 1<<14,
    Permission_EnableCarRecycle: 1<<15,
    Permission_EnableEditPreparation: 1<<16, //整备管理
    Permission_EnableOrderManager: 1<<17, //订单管理
    Permission_EnableStockCleaner: 1<< 18, //清库宝
    Permission_EnableCheckMerchant: 1<< 19, //允许该员工查看其它经销商信息
    Permission_EnableCheckCompCharts: 1<< 20, //查看公司报表权限
    Permission_EnableSeeSaleFloorPrice: 1<< 21,   // 销售底价权限
    Permission_EnableOfferPriceView: 1<< 26,   // 查看报价
    Permission_EnableOfferPriceOperate: 1<< 27,   // 报价操作

    Permission_EnablePurchaseCenter: 1<< 28, // 采购权限, 求购中心
}